import { BaseEntity } from 'egg-cool-entity';
import { Entity, Column } from 'typeorm';

@Entity({ name: 'user' })
export default class User extends BaseEntity {
    // 用户名
    @Column({
        comment: '用户姓名',
    })
    name: string;

    @Column({
        comment: '用户角色',
    })
    role: string;

    @Column({
        comment: '用户手机号码',
    })
    phone: string;

    @Column({
        comment: '密码',
    })
    password: string;
}
